﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ProductDetail.aspx.cs" Inherits="ProductDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:FormView ID="PDetail" runat="server" Width="100%">
        <ItemTemplate>
<table class="detailsfirst">
<tr>
    <td  class="detailsfirstleft">        
	    <img  src='<%#Eval("BigImage") %>' width="250px" title="Optional title display" alt='<%#Eval("BigImage") %>'/>
	</a>      
    </td>
    <td class="detailsfirstright">
        <table>
        <tr><td style="width:100px; text-align:right">Nhà sản xuất:</td><td style="text-align:left;padding-left:20px"><%#Eval("ID")%></td></tr>
        <tr><td style="width:100px; text-align:right">Tên sản phẩm:</td><td style="text-align:left;padding-left:20px"><%#Eval("ProductName")%></td></tr>
        <tr><td style="width:100px; text-align:right">Bảo hành:</td><td style="text-align:left;padding-left:20px">12&nbsp;tháng</td></tr>
        <tr><td style="width:100px; text-align:right">Giá:</td><td style="text-align:left; color:Red; padding-left:20px"><%#Eval("Price", "{0:#,#.##}")%>&nbsp;VNĐ</td></tr>
        <tr><td style="width:100px; text-align:right">Số lượng:</td><td style="text-align:left; color:Red; padding-left:20px"><%#Eval("Quantity")%>&nbsp;Cái</td></tr>
        <tr><td style="width:100px; text-align:right">Mô tả:</td><td style="text-align:left; color:Red; padding-left:20px"><%#Eval("Description")%></td></tr>
        <tr><td style="width:100px; text-align:right">
            <asp:TextBox Width="50px" Text="1" ID="txtQuantity" runat="server"></asp:TextBox></td><td style="text-align:left;font-weight:bold">
                <asp:ImageButton ID="ibtnBuy" runat="server" ImageUrl="~/Images/buy_bt.gif" CommandArgument='<%#Eval("ID") %>' OnClick="ShoppingCart_Add" /></td></tr>
        </table>
    </td>
</tr>

</table>
</ItemTemplate>
    </asp:FormView>
</asp:Content>

